#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

/*SELF DEFINED ENUM*/
enum message_type {
    ordinary,   //Text is Black
    all_right,  //Text is Green
    warning     //Text is Red
};
/*SELF DEFINED ENUM*/

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

/*SELF DEFINED FUNCTION*/

    void dp_message(QString message, message_type type); //Display message text on message_box(QLabel)
    void clear_status(); //Clear all use status

/*SELF DEFINED FUNCTION*/

private slots:
    void on_choose_image_clicked();

    void on_start_button_clicked();

    void on_image_path_textChanged(const QString &arg1);

private:
    Ui::Widget *ui;
};

extern Widget * main_widget;

#endif // WIDGET_H
